const AreaAddressValidator = (rule, value, callback) => {
  if (value && Object.prototype.toString.call(value) === '[object Object]') {
    const { province, city, area } = value
    if (!province || !city || !area) {
      callback(new Error('请选择省市区'))
    } else {
      callback()
    }
  } else {
    callback(new Error('请选择省市区'))
  }
}
export default AreaAddressValidator